/**
 * 
 */
package com.desitek.cricket.dao.hibernate;

import java.util.List;

import com.desitek.cricket.entity.Groups;
import com.desitek.cricket.repository.GroupRepository;

/**
 * @author Dhiraj
 * 
 */
public class GroupDAO extends GenericDAO<Groups> implements
		GroupRepository {

	public Groups findById(int id) {

		return (Groups) getSession().load(Groups.class, id);
	}

	@SuppressWarnings("unchecked")
	public List<Groups> getAllGroups() {
	

		return getSession().createCriteria(Groups.class).list();
	}

	/**
	 * 
	 */
}
